import App from './App'
import Vue from 'vue'
import { myRequest } from './util/api'

Vue.prototype.$myRuquest = myRequest
Vue.filter('formatDate',(data) => {
	const nDate = new Date(date)
	const year = nDate.getFullYear()
	const month = nDate.getMonth().toString().padStart(2,0)
	const day = nDate.getDate().toString().padStart(2,0)
	return year+'-' + month + '-' +day
})

Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
